package com.cqw.order.mapper;


import com.cqw.order.domain.Spu;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SpuMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Spu record);

    int insertSelective(Spu record);

    Spu selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Spu record);

    int updateByPrimaryKey(Spu record);

    int selectCountByName(@Param("shopId") Long shopId, @Param("spuName") String spuName);

    List<Spu> selectBySelective(Spu spu);

}